﻿@model V_SerialNoListDataSet.V_SERIALNOLISTRow
@{
    ViewBag.Title = "手机序信息管理输入窗口";
    Layout = "~/Areas/HomePage/Views/Shared/DefaultLayout.cshtml";
}
@section ScriptContent{
    <script type="text/javascript">
        $(function () {
            $(".newSerialNo").addClass("hover");
            var valid = $("form").validate({
                rules: {
                    "EMPACCOUNT": { required: true, rangelength: [2, 20] }
                }
                 , messages: {
                     "EMPACCOUNT": { required: "账号不能为空", rangelength: "账号长度在2-20个字符之间" }
                 }
            });
            valid.form();

        });
    </script>
}
<dl class="right_side_dl">
    <dt class="right_side_dt">手机序列号管理输入窗口</dt>
    <dd class="right_side_dd">
        <dl class="content">
            <dd>
                <form method="post" action="@Url.Action("SerilaNoPost")">
                <table width="100%" class="blue_table">
                    <tr>
                        <td class="w80">
                            序列号
                        </td>
                        <td>
                            @Model.SN
                            @Html.Hidden("SN", Model.SN, new { @readonly = "readonly", @class = "input_text w200" })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            账号
                        </td>
                        <td>
                            @Html.TextBox("EMPACCOUNT", Model.EMPACCOUNT, new { @class = "input_text", maxlength = 20 })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            手机号
                        </td>
                        <td>@Html.TextBox("MOBILE", Model.MOBILE, new { @class = "input_text", maxlength = 20 })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            状态
                        </td>
                        <td>
                            @Html.DropDownList("Status", new SelectList(ViewData["SerialNoStatus"] as List<object>, "Value", "Text", Model.STATUS), new { @class = "input_text" })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            备注
                        </td>
                        <td>
                            @Html.TextArea("REMARK", Model.REMARK, new { rows = 5, cols = 90, style = "width:90%", maxlength = 500 })
                        </td>
                    </tr>
                    <tr>
                        <td>
                            保存
                        </td>
                        <td>
                            <button type="submit" class="btn">
                                保存</button>
                        </td>
                    </tr>
                </table>
                </form>
            </dd>
            <dd>
                <table width="100%" class="blue_table">
                    <thead>
                        <tr>
                            <th colspan="4">
                                手机客户端信息
                            </th>
                        </tr>
                    </thead>
                    <tr>
                        <td class="w80">
                            手机串号
                        </td>
                        <td>
                            @Model.IMEI
                        </td>
                        <td class="w80">
                            手机型号
                        </td>
                        <td class="w150">
                            @Model.MOBILEMODEL
                        </td>
                    </tr>
                    <tr>
                        <td>
                            操作平台
                        </td>
                        <td>
                            @Model.PLATFORM
                        </td>
                        <td>
                            平台版本
                        </td>
                        <td>
                            @Model.PLATFORMVERSION
                        </td>
                    </tr>
                    <tr>
                        <td>
                            初次登陆
                        </td>
                        <td>
                            @string.Format("{0}", Model.IsFIRSTLOGINTIMENull() ? string.Empty : Model.FIRSTLOGINTIME.ToString())
                        </td>
                        <td>
                            最后登陆
                        </td>
                        <td>
                            @string.Format("{0}", (Model.IsLASTLOGINTIMENull() ? string.Empty : Model.LASTLOGINTIME.ToString()))
                        </td>
                    </tr>
                </table>
            </dd>
        </dl>
    </dd>
</dl>
<div class="right_bottom">
</div>
